package com.mingqijia.gassafety.job.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.mingqijia.gassafety.db.entity.auth.CompanyEntry;
import com.mingqijia.gassafety.job.request.CompanyRequest;
import com.mingqijia.gassafety.job.response.CompanyListResponse;
import com.mingqijia.gassafety.job.response.CompanyResponse;
import com.mingqijia.gassafety.shared.utils.commonUtils.PageUtil;

import java.util.List;

/**
 * <p>
   故障记录 服务类
 * </p>
 *
 * @author guoliang.lao
 * @since 2022-03-04
 */
public interface CompanyService extends IService<CompanyEntry> {

    PageUtil<CompanyResponse> list(CompanyRequest req);

    /**
     * 根据spId获取orgCode
     * @param spId
     * @return
     */
    String getOrgCode(String spId,String subsCode);

    /**
     * 根据spId获取orgCode（燃气户号接口映射）
     * @param spId
     * @return
     */
    List<String> getOrgCodeBySubsCode(String spId);

    List<CompanyListResponse> queryCompanyNameList(List<String> spIds);
}
